<?php

/**
 * @export Modules
 * @export-metadata RequiredRoles:ROLE_STUDENT:ROLE_PROFESSOR:ROLE_DIRECTIVE:ROLE_PRACTICES_COORDINATOR:ROLE_ENTERPRISE:ROLE_GRADUATE
 * @export-metadata default-module
 */
class FrontPage extends Module {

    function index() {
        $this->display("index");
    }

    function error() {
        $this->addMessage(new Message("Hubo un error al intentar procesar su peticion, intentelo de nuevo.",
                        "Ups", Message::ERROR));
        throw new Exception;
        $this->display("index");
    }

    function test() {
        $this->model->sqlPersistenceTest->storeSomething();
        $this->model->sqlPersistenceTest->loadSomething();
    }

    function pdfTests() {
        
    }

}

?>
